<?php
namespace app\ctrl;
use core\stupboy;
class indexCtrl extends stupboy
{
	public function index(){
		$model = new \core\lib\model();
		$sql = "select * from customers";
		$list = $model->query($sql);
		P($list->fetchAll());
		$data = 'hellow';
		$this->assign('data',$data);
		$this->assign('data2',$data);
		$this->display('index.html');
	}
}